import Vue from 'vue'
import Router from 'vue-router'
import InitializeIndex from '@/components/Initialize/index'

import InitializeMode from '@/components/Initialize/InitializeMode'
import FromLocal from '@/components/Initialize/FromLocal'
import FromManualy from '@/components/Initialize/FromManually/index'
import FromSync from '@/components/Initialize/FromSync'

import SelectLanguage from "@/components/SelectLanguage"
import Welcome from "@/components/Welcome"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "",
      component: Welcome
    },
    {
      path: '/Initialize',
      name: 'Initialize',
      component: InitializeIndex,
      children: [
        {
          name: "InitializeMode",
          path: "",
          component: InitializeMode
        },
        {
          name: "FromLocal",
          path: "FromLocal",
          component: FromLocal
        },
        {
          name: "FromSync",
          path: "FromSync",
          component: FromSync
        },
        {
          name: "FromManualy",
          path: "FromManualy",
          component: FromManualy
        },
      ]
    },
    {
      path: "/Languages",
      name: "SelectLanguages",
      component: SelectLanguage
    }
  ]
})
